﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;

namespace TestApp
{
    /// <summary>
    /// Summary description for WebService1
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [System.ComponentModel.ToolboxItem(false)]
    // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. 
    [System.Web.Script.Services.ScriptService]
    public class WebService1 : System.Web.Services.WebService
    {

        [WebMethod]
        public List<ServRefWS.datosmini> cargardatosmini()
        {
            ServRefWS.serviciointegradorSoapClient sr = new ServRefWS.serviciointegradorSoapClient();
            List<ServRefWS.datosmini> dm = sr.cargardatosmini();
            List<ServRefWS.datosrestric> dr = sr.cargardatosrestric();
            return dm;
        }
        [WebMethod]
        public List<ServRefWS.datosrestric> cargardatosrestric()
        {
            ServRefWS.serviciointegradorSoapClient sr = new ServRefWS.serviciointegradorSoapClient();
            List<ServRefWS.datosmini> dm = sr.cargardatosmini();
            List<ServRefWS.datosrestric> dr = sr.cargardatosrestric();
            return dr;
        }
        [WebMethod]
        public string callindo(ServRefWS.ArrayOfDatosmini dm, ServRefWS.ArrayOfDatosrestric dr)
        {

            ServRefWS.serviciointegradorSoapClient sr = new ServRefWS.serviciointegradorSoapClient();
            return sr.callindo(dm,dr);
             //to 'TestApp.ServRefWS.ArrayOfDatosmini' 

        }
    }
}
